package com.rabbitmq.config;

import org.springframework.amqp.core.Queue;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * @author 王霄
 * @date 2022/1/8 16:44
 */
@Configuration
public class SimpleConfig {

    public static final String QUEUE_NAME = "simple.queue";

    @Bean(name = QUEUE_NAME)
    public Queue queueSimple() {
        return new Queue(QUEUE_NAME);
    }
}
